package demo.service;

import org.apache.commons.io.FileUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.util.ResourceUtils;

import javax.annotation.PostConstruct;
import java.io.FileNotFoundException;
import java.io.IOException;

@Service
public class TestService {

	private static final Logger logger = LoggerFactory.getLogger(TestService.class);
	
	@PostConstruct
	void xxx() throws FileNotFoundException, IOException{
		
//		String ss = FileUtils.readFileToString(ResourceUtils.getFile("classpath:spring/spring-context.xml").getAbsoluteFile());
//		
//		for (int i = 0; i < 10000; i++) {
//			logger.error(ss);
//		}
//
//       System.out.print(1);
	}

}
